<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2016/9/13
 * Time: 15:08
 */
define('ENV', 'dev');
date_default_timezone_set('PRC');

switch (ENV) {
    case 'dev':
        define('WEB_ROOT', 'http://192.168.199.179:8080/snapshop_server/');
        define('SERVER', '127.0.0.1');
        define('PORT', '3307');
        define('DBNAME', 'snap_shop');
        define('DBUSER', 'root');
        define('PWD', 'usbw');
        define('CHARSET', 'uft8');
        break;
    case 'test':
        define('WEB_ROOT', 'http://www.edit-product.com/');
        define('SERVER', '127.0.0.1');
        define('PORT', '3306');
        define('DBNAME', 'snap_shop');
        define('DBUSER', 'root');
        define('PWD', 'jh!@#2016');
        define('CHARSET', 'uft8');
        break;
    case 'prod':
        define('WEB_ROOT', 'http://www.edit-product.com/');
        define('SERVER', '127.0.0.1');
        define('PORT', '3306');
        define('DBNAME', 'snap_shop');
        define('DBUSER', 'root');
        define('PWD', 'jh!@#2016');
        define('CHARSET', 'uft8');
        break;
    default:
        break;
}